package com.ax.center.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;


/**
 * @author zy
 * @date 2023/7/5  11:30
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "角色实体类")
@TableName(value = "role")
public class Role implements Serializable {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "角色ID")
    private Long roleId;
    @ApiModelProperty(value = "角色名称")
    private String roleName;
    @TableField(exist = false)
    @ApiModelProperty(value = "角色权限列表")
    private List<Long> permissions;

    @ApiModelProperty(value = "组织机构编码")
    private String organizationId;
}
